package com.sailors.common.task.provider.infra.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 任务进度表
 * </p>
 *
 * @author cyj
 * @description:
 * @author: cyj
 * @date 2022 -11-23 12:12:17
 * @since 2022 -11-22
 */
@TableName("task_pro_log")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TaskProLogPo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * task_log表id
     */
    private Long taskId;
    /**
     * 进度0-100，到100状态扭转为成功
     */
    private BigDecimal process;
    /**
     * 创建人
     */
    private String createBy;
    /**
     * 创建时间
     */
    private Date createTime;

    public TaskProLogPo(Long taskId, BigDecimal process, String createBy) {
        this.taskId = taskId;
        this.process = process;
        this.createBy = createBy;
    }
}
